FROM python:3.10-slim

LABEL authors="lpe234"

ENV TZ="Asia/Shanghai"

WORKDIR /home/metareal

ADD ./requirements /home/metareal/requirements
RUN pip install -r requirements/base.txt -r requirements/tw.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

ADD . /home/metareal

VOLUME ["/home/metareal"]

EXPOSE 5000

# 超时 & 单进程
ENTRYPOINT ["gunicorn", "--bind", "0.0.0.0:5000", "web_app:app"]
